BT-EZ 2 Click Example.
Description
This example demonstrates the use of BT-EZ 2 Click board by processing data from a connected BLE device.
The demo application is composed of two sections :
Application Init
Initializes the driver and logger.
Application Task
Application task is split in few stages:
- BTEZ2_POWER_UP: Powers up the device and checks the communication.
- BTEZ2_CONFIG_EXAMPLE: Restores factory settings and reads the BT address and name.
- BTEZ2_EXAMPLE: Performs a BT terminal example by processing all data from a connected BLE device and sending back an adequate response messages.
Additional Function
- static void btez2_clear_app_buf ( void )
- static void btez2_log_app_buf ( void )
- static err_t btez2_process ( btez2_t *ctx )
- static err_t btez2_wait_packet ( btez2_t *ctx, uint8_t timeout_s, uint8_t rsp_flag, uint8_t *cmd_code )
- static err_t btez2_power_up ( btez2_t *ctx )
- static err_t btez2_config_example ( btez2_t *ctx )
- static err_t btez2_example ( btez2_t *ctx )
- Note
- We have used the Serial Bluetooth Terminal smartphone application for the test.
- Author
- Stefan Filipovic